package com.csmzxy.soft.atm;

import java.util.Scanner;

public abstract class Screen implements IScreen {
    protected String inputStr1;
    protected String inputStr2;
    protected Scanner sc;
    public Screen(){
        inputStr1="";
        inputStr2="";
        sc=new Scanner(System.in);
    }
    public abstract void show();
    public void show(String msg){
        System.out.println(msg);
        System.out.println("回车键继续...");
        sc.nextLine();
    }
    public InputResult getInput1(){
        return new InputResult(inputStr1);
    }
    public InputResult getInput2(){
        return new InputResult(inputStr2);
    }
}
